cmake_minimum_required( VERSION 3.10 FATAL_ERROR )

project( "zstd-main" LANGUAGES CXX )

set( AE_EXTERNAL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../.." )
include( "${AE_EXTERNAL_PATH}/config.cmake" )

set( ZSTD_MULTITHREAD_SUPPORT		OFF CACHE INTERNAL "" FORCE )
set( ZSTD_BUILD_PROGRAMS			OFF CACHE INTERNAL "" FORCE )
set( ZSTD_BUILD_CONTRIB				OFF CACHE INTERNAL "" FORCE )
set( ZSTD_BUILD_TESTS				OFF CACHE INTERNAL "" FORCE )
set( ZSTD_BUILD_STATIC				ON  CACHE INTERNAL "" FORCE )
set( ZSTD_BUILD_SHARED				OFF CACHE INTERNAL "" FORCE )
if (MSVC)
	set( ZSTD_USE_STATIC_RUNTIME	ON CACHE INTERNAL "" FORCE )
endif()

add_subdirectory( "build/cmake" )

install( FILES "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" DESTINATION "." )
